package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.service.IAgencyCertificationAuditService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/agency/agency-certification-audit")
public class AgencyCertificationAuditController {
    @Resource
    private IAgencyCertificationAuditService agencyCertificationAuditService;

    @PostMapping
    public void realNameAuthentication(@RequestBody AgencyCertificationAuditAddReqDTO agencyCertificationAuditAddReqDTO) {
        agencyCertificationAuditService.realNameAuthentication(agencyCertificationAuditAddReqDTO);

    }
    @GetMapping("/reject-reason")
    public RejectReasonResDTO rejectReason() {
        return agencyCertificationAuditService.rejectReason();
    }
}